﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using WpfCap;

namespace AvCapWPF
{
    /// <summary>
    /// Interaction logic for Window2.xaml
    /// </summary>
    public partial class Window2 : Window
    {
        public Window2()
        {
            InitializeComponent();
        }
        public Window2(Window1 w)
        {
            CapPlayer = w.capplayer;
            DataContext = this;
            InitializeComponent();   
        }
        public CapPlayer CapPlayer 
        {
            get { return (CapPlayer)GetValue(CapPlayerProperty); }
            set { SetValue(CapPlayerProperty, value); }
        }
        public static readonly DependencyProperty CapPlayerProperty =
            DependencyProperty.Register("CapPlayer", typeof(CapPlayer), typeof(Window2), new UIPropertyMetadata(default(CapPlayer)));

    }
}
